.facility-dialog {
  position: absolute;
  top: 108px;
  right: 40px;
  z-index: 100;
  width: 800px;
  height: 750px;
  min-height: 750px;
  background-image: url("@/assets/img/gb/manage_map_window.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;

  .dialog-title {
    height: 60px;
    padding-left: 20px;
    font-size: 24px;
    font-family: 'fan';
    line-height: 60px;
    color: #fff;
    text-shadow: 3px 3px 2px #205efd;
  }

  .remote-restart-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    display: flex;
    align-items: center;

    .btn-i {
      width: 120px;
      padding: 8px 0;
      margin-left: 20px;
      font-size: 16px;
      font-weight: bold;
      color: #28ebe4;
      text-align: center;
      cursor: pointer;
      background-image: url("@/assets/img/gb/but_selected.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }

    img{
      width: 30px;
      height: 30px;
      cursor: pointer;
      margin-left: 15px;
    }
  }

  .facility-content {
    padding: 20px;

    .top-main {
      display: flex;

      .facility-img {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 120px;
        height: 150px;
        padding: 4px;
        background-image: url("@/assets/img/gb/window_device_bg.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;

        img {
          width: auto;
          height: 100%;
        }

        .device_uav {
          width: 100% !important;
          height: auto !important;
        }
      }

      .top-main-right {
        flex: 1;
        margin-left: 40px;

        .facility-info {
          display: flex;
          align-items: center;
          justify-content: space-between;
          width: 95%;
          padding-top: 10px;
          padding-bottom: 30px;

          .info-i {
            display: flex;
            align-items: center;

            .info-i-icon {
              width: 60px;
              height: 60px;
              margin-right: 16px;
            }

            .info-i-text {
              font-size: 19px;
              font-weight: bold;
              color: #fff;
            }

            .info-i-title {
              margin-top: 5px;
              font-size: 16px;
              font-weight: bold;
              color: #28ebe4;
            }
          }
        }

        .alarm-message {
          display: flex;
          align-items: center;
          padding: 7px 10px;
          background: rgb(28 99 232 / 10%);

          .alarm-message-title {
            display: flex;
            align-items: center;
          }

          .alarm-icon {
            width: 16px;
            height: 16px;
            margin-right: 12px;
          }

          .alarm-title {
            font-size: 16px;
            font-weight: bold;
            color: #fae17d;
          }

          .alarm-message-content {
            padding-left: 15px;
            font-size: 16px;
            color: #fff;
          }
        }
      }
    }

    .bottom-main,
    .insect-pest-bottom-main,
    .smart-water-fertilizer-bottomMain,
    .seedling-bottomMain {
      margin-top: 30px;

      .data-i {
        padding-bottom: 10px;

        .model-tltle {
          padding: 7px 15px;
          font-size: 16px;
          font-weight: bold;
          color: #7cc2bf;
          background: rgb(28 99 232 / 10%);
          border-left: 3px solid #7cc2bf;
        }

        .echarts-main {
          width: 100%;
          height: 190px;
        }
      }
    }

    /* 土壤 */
    .bottom-main {
      display: grid;
      grid-template-columns: 47.2% 47.2%;
      column-gap: 40px;

      .soil-quality-main {
        height: 190px;
        margin: 8px 0;
        overflow-y: auto;

        .analysis-i {
          display: flex;
          align-items: center;
          margin-top: 4px;

          .analysis-i-name {
            width: 80px;
            padding: 11px 0;
            font-size: 14px;
            color: #fff;
            text-align: center;
            background: rgb(44 215 255 / 10%);
            border: 1px solid rgb(0 74 116 / 30%);
          }

          .analysis-i-content {
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: space-between;
            padding: 11px 20px;
            margin-left: 2px;
            background: linear-gradient(
              90deg,
              #004a74 0%,
              rgb(0 74 116 / 0%) 100%
            );

            .analysis-i-value {
              font-size: 14px;
              color: #fff;
            }

            .analysis-i-float {
              display: flex;
              align-items: center;
              font-size: 16px;
              color: #fff;

              img {
                width: 14px;
                height: 14px;
                margin-right: 6px;
                margin-left: 10px;
              }
            }
          }
        }
      }
    }

    /* 水肥 */
    .smart-water-fertilizer-bottomMain {
      .valve-main {
        display: grid;
        grid-template-columns: 15% 15% 15% 15% 15% 15%;
        column-gap: 14px;
        min-height: 200px;

        .valve-i {
          width: 100%;
          height: 90px;
          margin-top: 13px;
          text-align: center;
          background-image: url("@/assets/img/gb/window_valve_bg.png");
          background-repeat: no-repeat;
          background-size: 100% 100%;

          .valve-i-name {
            font-size: 14px;
            line-height: 30px;
            color: #fff;
          }

          .valve-i-state {
            margin-top: 7px;
            font-size: 17px;
            font-weight: bold;
            color: #28ebe4;
          }

          .valve-i-btn {
            color: #fff;
            cursor: pointer;
          }
        }
      }
    }

    /* 病虫击杀 */
    .insect-pest-bottom-main {
      .tablemain {
        height: 100%;
        padding: 10px;

        ::v-deep(.el-table th.el-table__cell) {
          padding: 1px 0;
          font-size: 14px;
          font-weight: bold;
          color: #9dbaf5;
          background-color: transparent;
        }

        ::v-deep(.el-table) {
          background-color: transparent;

          td.el-table__cell,
          th.el-table__cell.is-leaf {
            border: 0;
          }

          .el-table__inner-wrapper {
            &::before {
              background-color: #000;
            }
          }

          .el-table__header {
            background: rgb(28 99 232 / 10%);
            background-size: 100% 100%;

            thead {
              height: 40px;

              tr {
                font-size: 16px;
                background-color: transparent;
              }
            }
          }

          .el-table__row {
            font-size: 14px;
            color: #fff;
            background: rgb(28 99 232 / 4%);

            td {
              background: transparent !important;
              border-bottom: 5px solid transparent;
            }
          }

          .el-table__row--striped {
            background-color: transparent;
          }
        }

        .btns {
          display: inline-block;
          padding: 0 10px;
          background-color: rgb(23 133 129 / 32%);
          border-radius: 4px;

          button {
            color: #fff;
          }
        }
      }
    }

    /* 苗情 */
    .seedling-bottomMain {
      .monitor-main {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        margin-top: 18px;
        overflow-x: auto;

        img,video {
          width: 200px;
          height: 144px;
          margin-right: 16px;
          border-radius: 5px;
        }
      }
    }
  }
}
